package cn.qiyu5522.tk_ems.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_job")
@ApiModel(value="Job对象", description="")
public class Job implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "职位编号")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "职位名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "职位分类")
    @TableField("job_category_id")
    private Integer jobCategoryId;

    @ApiModelProperty(value = "企业编号")
    @TableField("company_id")
    private Long companyId;

    @ApiModelProperty(value = "职位分类名称")
    @TableField("job_category_name")
    private String jobCategoryName;

    @ApiModelProperty(value = "月薪")
    @TableField("month_salary")
    private String monthSalary;

    @ApiModelProperty(value = "工作地点")
    @TableField("work_address")
    private String workAddress;
    @ApiModelProperty(value = "工作地点编号")
    @TableField("work_address_id")
    private String workAddressId;

    @ApiModelProperty(value = "职位描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "工作福利")
    @TableField("welfare")
    private String welfare;

    @ApiModelProperty(value = "要求学历")
    @TableField("require_edu_id")
    private Integer requireEduId;

    @ApiModelProperty(value = "要求工作经验")
    @TableField("require_experience_id")
    private Integer requireExperienceId;

    @ApiModelProperty(value = "发布时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "操作员编号")
    @TableField(value = "operator_id", fill = FieldFill.INSERT_UPDATE)
    private Long operatorId;

    @ApiModelProperty(value = "操作员名")
    @TableField(value = "operator", fill = FieldFill.INSERT_UPDATE)
    private String operator;


    public interface Update {
    }

    public interface Insert {
    }
}
